//
//	TList.m
//
//	Create by jiang hao on 11/8/2016
//	Copyright © 2016. All rights reserved.
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport



#import "TList.h"

NSString *const kTListAlias = @"alias";
NSString *const kTListBannerOrder = @"bannerOrder";
NSString *const kTListCid = @"cid";
NSString *const kTListColor = @"color";
NSString *const kTListEname = @"ename";
NSString *const kTListHasCover = @"hasCover";
NSString *const kTListHasIcon = @"hasIcon";
NSString *const kTListHeadLine = @"headLine";
NSString *const kTListImg = @"img";
NSString *const kTListIsHot = @"isHot";
NSString *const kTListIsNew = @"isNew";
NSString *const kTListRecommend = @"recommend";
NSString *const kTListRecommendOrder = @"recommendOrder";
NSString *const kTListShowType = @"showType";
NSString *const kTListSpecial = @"special";
NSString *const kTListSubnum = @"subnum";
NSString *const kTListTag = @"tag";
NSString *const kTListTagDate = @"tagDate";
NSString *const kTListTemplate = @"template";
NSString *const kTListTid = @"tid";
NSString *const kTListTname = @"tname";
NSString *const kTListTopicid = @"topicid";
NSString *const kTListWeburl = @"weburl";

@interface TList ()
@end
@implementation TList




/**
 * Instantiate the instance using the passed dictionary values to set the properties values
 */

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
	self = [super init];
	if(![dictionary[kTListAlias] isKindOfClass:[NSNull class]]){
		self.alias = dictionary[kTListAlias];
	}	
	if(![dictionary[kTListBannerOrder] isKindOfClass:[NSNull class]]){
		self.bannerOrder = [dictionary[kTListBannerOrder] integerValue];
	}

	if(![dictionary[kTListCid] isKindOfClass:[NSNull class]]){
		self.cid = dictionary[kTListCid];
	}	
	if(![dictionary[kTListColor] isKindOfClass:[NSNull class]]){
		self.color = dictionary[kTListColor];
	}	
	if(![dictionary[kTListEname] isKindOfClass:[NSNull class]]){
		self.ename = dictionary[kTListEname];
	}	
	if(![dictionary[kTListHasCover] isKindOfClass:[NSNull class]]){
		self.hasCover = [dictionary[kTListHasCover] boolValue];
	}

	if(![dictionary[kTListHasIcon] isKindOfClass:[NSNull class]]){
		self.hasIcon = [dictionary[kTListHasIcon] boolValue];
	}

	if(![dictionary[kTListHeadLine] isKindOfClass:[NSNull class]]){
		self.headLine = [dictionary[kTListHeadLine] boolValue];
	}

	if(![dictionary[kTListImg] isKindOfClass:[NSNull class]]){
		self.img = dictionary[kTListImg];
	}	
	if(![dictionary[kTListIsHot] isKindOfClass:[NSNull class]]){
		self.isHot = [dictionary[kTListIsHot] integerValue];
	}

	if(![dictionary[kTListIsNew] isKindOfClass:[NSNull class]]){
		self.isNew = [dictionary[kTListIsNew] integerValue];
	}

	if(![dictionary[kTListRecommend] isKindOfClass:[NSNull class]]){
		self.recommend = dictionary[kTListRecommend];
	}	
	if(![dictionary[kTListRecommendOrder] isKindOfClass:[NSNull class]]){
		self.recommendOrder = [dictionary[kTListRecommendOrder] integerValue];
	}

	if(![dictionary[kTListShowType] isKindOfClass:[NSNull class]]){
		self.showType = dictionary[kTListShowType];
	}	
	if(![dictionary[kTListSpecial] isKindOfClass:[NSNull class]]){
		self.special = [dictionary[kTListSpecial] integerValue];
	}

	if(![dictionary[kTListSubnum] isKindOfClass:[NSNull class]]){
		self.subnum = dictionary[kTListSubnum];
	}	
	if(![dictionary[kTListTag] isKindOfClass:[NSNull class]]){
		self.tag = dictionary[kTListTag];
	}	
	if(![dictionary[kTListTagDate] isKindOfClass:[NSNull class]]){
		self.tagDate = dictionary[kTListTagDate];
	}	
	if(![dictionary[kTListTemplate] isKindOfClass:[NSNull class]]){
		self.template = dictionary[kTListTemplate];
	}	
	if(![dictionary[kTListTid] isKindOfClass:[NSNull class]]){
		self.tid = dictionary[kTListTid];
	}	
	if(![dictionary[kTListTname] isKindOfClass:[NSNull class]]){
		self.tname = dictionary[kTListTname];
	}	
	if(![dictionary[kTListTopicid] isKindOfClass:[NSNull class]]){
		self.topicid = dictionary[kTListTopicid];
	}	
	if(![dictionary[kTListWeburl] isKindOfClass:[NSNull class]]){
		self.weburl = dictionary[kTListWeburl];
	}	
	return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{



}
@end
